package com.hxzy.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.hxzy.common.easyexcel.SexConverter;
import com.hxzy.common.easyexcel.StatusConverter;
import com.hxzy.common.easyexcel.UrlToImageConverter;
import lombok.Data;

/**
 * @author 
 * 后台管理员表
 */
@ExcelIgnoreUnannotated
@Data
public class Employee implements Serializable {
    @ExcelProperty(value = "编号")
    private BigDecimal id;

    /**
     * 登录账户
     */
    @ExcelProperty(value = "登录账户")
    private String loginName;

    /**
     * 登录密码
     */
    private String loginPwd;

    /**
     * 性别(0 女 1 男)
     */
    @ExcelProperty(value = "性别",converter = SexConverter.class)
    private Short gender;

    /**
     * 状态（1停用，0正常）
     */
    @ExcelProperty(value = "状态",converter = StatusConverter.class)
    private Short status;

    /**
     * 头像
     */
    @ExcelProperty(value = "头像",converter = UrlToImageConverter.class)
    private String avatar;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @com.alibaba.excel.annotation.format.DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 创建人
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String createBy;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private Date updateTime;

    /**
     * 修改人
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String updateBy;

    private static final long serialVersionUID = 1L;
}